package com.wuqing.mybatisredisdemo.mapper;

import com.wuqing.mybatisredisdemo.bo.StudentDetailInfoBO;
import com.wuqing.mybatisredisdemo.entity.Student;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author 卢文昊
 * @since 2021-08-02
 */
public interface StudentMapper extends BaseMapper<Student> {

    List<Student> selectAll();

    List<Student> selectLikeName(@Param("name") String name);

    int insertStuInfo(@Param("student") Student student);

    int updateStuById(@Param("student") Student student);

    int deleteStuById(@Param("id") Integer id);

    List<StudentDetailInfoBO> selectStudentByIdWithClassInfo(@Param("id") Integer id);
}

